package org.ys2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

@SpringBootApplication
// Spring cloud Eureka 客户端，表明要将本服务注册到 Eureka Server 注册中心中
@EnableEurekaClient
public class EurekaClients {
    public static void main(String[] args) {
        SpringApplication.run(EurekaClients.class, args);
        System.out.println("Hello world!");
    }
}